package com.yuandian.management.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuandian.api.management.entity.ConfComponentResource;
import com.yuandian.bpm.common.data.datascope.BpmBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 组件资源配置表-Mapper接口
 * @author zfsn
 * @date 2023-3-17
 */
@Mapper
public interface ConfComponentResourceMapper extends BpmBaseMapper<ConfComponentResource> {
    void resetIpFilter();

    Integer insertAndGetId(ConfComponentResource csrVo);


	/**
	 * 分页查询
	 *
	 * @param confComponentResource 筛选条件
	 * @return 通用返回对象
	 */
	Page<ConfComponentResource> listPage(Page<ConfComponentResource> tPage, @Param("params") ConfComponentResource confComponentResource);

	/**
	 * 检查同系统中是否存在以编辑后的url为前缀的服务资源(子字符串)
	 * @param confComponentResource
	 * @return
	 */
	Integer checkConfirmedUrlInCsr(@Param("params") ConfComponentResource confComponentResource);
}